using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Stormwind.Testing.Entities;
using Castle.ActiveRecord.Framework.Config;
using Castle.ActiveRecord;

namespace Stormwind.Testing {
	/// <summary>
	/// Test fixture to be used as base for all unit tests.
	/// </summary>
	public class BaseTestFixture {

		[TestFixtureSetUp]
		public virtual void TestFixtureSetUp() {
			ActiveRecordStarter.Initialize(typeof(Customer).Assembly,
																			ActiveRecordSectionHandler.Instance);
		}

		[TestFixtureTearDown]
		public virtual void TestFixtureTearDown() {

		}

		[SetUp]
		public virtual void SetUp() {
			ActiveRecordStarter.DropSchema();
			ActiveRecordStarter.CreateSchema();
			ObjectMother.InitializeDatabase(10, 20);
		}

		[TearDown]
		public virtual void TearDown() {

		}

	}
}
